package com.cgc.venus.server.job.bean;

import com.cgc.venus.server.core.bean.page.PageQuery;

/**
 *
 * 应用管理实体类
 */
public class AppManageBean extends PageQuery {
    /* id*/
    private String id;

    /* 应用名称*/
    private String appName;

    /* 应用名称(kubernetes集群里面的名称)*/
    private String appNameKube;

    /* 应用类型*/
    private String appKind;

    /* 镜像名称*/
    private String imageName;

    /* 镜像版本*/
    private String imageVersion;


    /* 应用所属空间*/
    private String namespace;

    /* 应用部署方式*/
    private int deployType;

    /* 应用描述*/
    private String described;

    /* 应用创建时间*/
    private String createTime;

    /* 应用最后更新时间*/
    private String lastUpdateTime;

    // 用于前台提交数据
    private String fileData;

    // 实例数
    private String replicas;

    // 状态: 运行中,关闭,异常
    private String status;

    // 应用创建时间差
    private String timeDiff;

    // 应用重启次数
    private int restartCount;

    // 状态信息
    private  String statusMessage;

    // 目标镜像版本
    private String targetImageVersion;

    // 当前应用是否开启了自动伸缩功能
    private boolean autoScale = false;

    //是否今天
    private boolean isToday;

    public AppManageBean(){};

    public AppManageBean(String id, String appName, String appNameKube, String appKind,
                         String imageName, String imageVersion, String namespace, int deployType, String described,
                         String createTime, String lastUpdateTime, String fileData, String replicas, String status) {
        this.id = id;
        this.appName = appName;
        this.appNameKube = appNameKube;
        this.appKind = appKind;
        this.imageName= imageName;
        this.imageVersion = imageVersion;
        this.namespace = namespace;
        this.deployType = deployType;
        this.described = described;
        this.createTime =createTime;
        this.lastUpdateTime = lastUpdateTime;
        this.fileData = fileData;
        this.replicas = replicas;
        this.status = status;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppNameKube() {
        return appNameKube;
    }

    public void setAppNameKube(String appNameKube) {
        this.appNameKube = appNameKube;
    }

    public String getAppKind() {
        return appKind;
    }

    public void setAppKind(String appType) {
        this.appKind = appType;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public String getImageVersion() {
        return imageVersion;
    }

    public void setImageVersion(String imageVersion) {
        this.imageVersion = imageVersion;
    }

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public int getDeployType() {
        return deployType;
    }

    public void setDeployType(int deployType) {
        this.deployType = deployType;
    }

    public String getDescribed() {
        return described;
    }

    public void setDescribed(String described) {
        this.described = described;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getFileData() {
        return fileData;
    }

    public void setFileData(String fileData) {
        this.fileData = fileData;
    }

    public String getReplicas() {
        return replicas;
    }

    public void setReplicas(String replicas) {
        this.replicas = replicas;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTimeDiff() {
        return timeDiff;
    }

    public void setTimeDiff(String timeDiff) {
        this.timeDiff = timeDiff;
    }

    public int getRestartCount() {
        return restartCount;
    }

    public void setRestartCount(int restartCount) {
        this.restartCount = restartCount;
    }

    public String getStatusMessage() {
        return statusMessage;
    }

    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }

    public String getTargetImageVersion() {
        return targetImageVersion;
    }

    public void setTargetImageVersion(String targetImageVersion) {
        this.targetImageVersion = targetImageVersion;
    }

    public boolean isAutoScale() {
        return autoScale;
    }

    public void setAutoScale(boolean autoScale) {
        this.autoScale = autoScale;
    }

    public boolean isToday() {
        return isToday;
    }

    public void setToday(boolean isToday) {
        this.isToday = isToday;
    }
}
